﻿using System.Data.Linq;
using System.Data.Linq.Mapping;

namespace WeiboPlus.Models
{
    [Table(Name = "sns_new_count")]
    public class SNSNewCounts : NotificationObject
    {
        int _id;
        [Column(Name = "id", IsPrimaryKey = true)]
        public int Id
        {
            get
            {
                return _id;
            }
            set
            {
                RaisePropertyChanging("Id");
                _id = value;
                RaisePropertyChanged("Id");
            }
        }

        int _followers;
        [Column(Name = "follower_count")]
        public int Followers
        {
            get
            {
                return _followers;
            }
            set
            {
                RaisePropertyChanging("Followers");
                _followers = value;
                RaisePropertyChanged("Followers");
            }
        }

        int _dm;
        [Column(Name = "dm_count")]
        public int Dm
        {
            get
            {
                return _dm;
            }
            set
            {
                RaisePropertyChanging("Dm");
                _dm = value;
                RaisePropertyChanged("Dm");
            }
        }

        int _comments;
        [Column(Name = "comment_count")]
        public int Comments
        {
            get
            {
                return _comments;
            }
            set
            {
                RaisePropertyChanging("Comments");
                _comments = value;
                RaisePropertyChanged("Comments");
            }
        }

        int _rt;
        [Column(Name = "rt_count")]
        public int Rt
        {
            get
            {
                return _rt;
            }
            set
            {
                RaisePropertyChanging("Rt");
                _rt = value;
                RaisePropertyChanged("Rt");
            }
        }

        [Column(IsVersion = true)]
#pragma warning disable 0168, 0169
        private Binary _version;
#pragma warning restore 0168, 0169
    }
}
